package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 折扣类型
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("折扣类型")
public enum DiscountTypeEnum implements DictEnum<String> {
    MJ("MJ", "满减", "green", 1),
    ZK("ZK", "折扣", "blue", 2);


    @EnumValue
    @JsonValue
    private final String value;
    private final String label;
    private final String color;
    private final Integer priority;
}
